from api.api import ElasticSearchQueryResource
from api.api import ElasticSearchChangerResource
from flask_restful import reqparse


class JDGoodsWordCloudResource(ElasticSearchQueryResource):
    pass


class JDShopWordCloudResource(ElasticSearchQueryResource):
    pass


class JDShopGoodsResource(ElasticSearchQueryResource):
    pass


class JDShopGoodsMatchResource(ElasticSearchQueryResource):
    pass


class JDShopMatchResource(ElasticSearchQueryResource):
    pass


class JDShopGoodsMatchAllResouce(ElasticSearchQueryResource):
    pass


class JDGoodPriceModifyResource(ElasticSearchChangerResource):
    pass


jd_goods_changer_parser = reqparse.RequestParser()
jd_goods_changer_parser.add_argument('youka_id', type=str, location='json')
jd_goods_changer_parser.add_argument('goods_id', type=str, location='json')
jd_goods_changer_parser.add_argument('price', type=str, location='json')

jd_goods_match_parser = reqparse.RequestParser()
jd_goods_match_parser.add_argument('youka_id', type=str, location='json')
jd_goods_match_parser.add_argument('goods_id', type=str, location='json')
jd_goods_match_parser.add_argument('from', type=int, location='json')
jd_goods_match_parser.add_argument('size', type=int, location='json')
jd_goods_match_parser.add_argument('filters', type=dict, location='json')
jd_goods_match_parser.add_argument('term', type=str, location='json')
jd_goods_match_parser.add_argument('order_by', type=str, location='json')


id_parser = reqparse.RequestParser()
id_parser.add_argument('youka_id', type=str, location='args')
id_parser.add_argument('id', type=str, location='args')
